package net.homelinux.ajay.net.ondisk.view.menu.client;

import net.homelinux.ajay.net.ondisk.view.client.AppTree;
import net.homelinux.ajay.net.ondisk.view.client.CommandsMenu;

import com.google.gwt.user.client.ui.MenuBar;

public class MenuBuilder {
  
  
  public AppTree getTree(){
    return AppTree.getTree();
  }

  protected CommandsMenu makeContextMenu() {
    CommandsMenu contextMenu = new CommandsMenu();
    
    MenuBar newMenu = makeNewMenu();
    if(newMenu!=null){
      contextMenu.addItem("<img src='images/obj16/add_obj.gif'/>New...", true, newMenu);
    }
    
    return contextMenu;
  }
  

  private MenuBar makeNewMenu() {
    return null;
  }


}
